package com.zy.view.sort;

import android.graphics.Canvas;
import android.graphics.Paint;

//Point 与 Point 之间的辅助连线（固定不变的）
public class PointLine {

    float startCenterX;
    float startCenterY;

    float endCenterX;
    float endCenterY;


    public PointLine(float startCenterX, float startCenterY, float endCenterX, float endCenterY) {
        this.startCenterX = startCenterX;
        this.startCenterY = startCenterY;
        this.endCenterX = endCenterX;
        this.endCenterY = endCenterY;

    }

    public void draw(Canvas canvas, Paint paint) {
        canvas.drawLine(startCenterX, startCenterY, endCenterX, endCenterY, paint);
    }
}
